<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="hna"  uri="http://www.hna.net/HnaTag.tld"%>
<div class="m_left">
	<div class="index_switch"></div>
	<div id="meau_con" class="p_relative">
		<div data-role="j_scroll_bar" class="m_scroll_bar">
			<div data-role="j_scroll_button" class="slide_bar"></div>
		</div>
		<div class="meau" data-role="j_panel_content" >
			<ul>
				<!-- <li><font data-role="root" data-level="1" ><a href="#"><i class="m01"></i>首页</a></font></li> -->
				
				<li><font data-role="root" data-level="1"><a href="${ctx}/committeeMember/list"><i class="m04"></i>凭证管理</a></font></li>
				
				<hna:permission privilege="sms">
				<li><font data-role="root" data-level="1"><a><i	class="m04"></i>短信平台</a></font>
					<div class="a_content" data-role="tree_action" data-con="1">
						<ul>
						  <hna:permission privilege="smsSend.view"><li><a href="${ctx}/smsSend/list">短信发送</a></li></hna:permission>
						  <hna:permission privilege="telephoneGroup.view"><li><a href="${ctx}/telephoneGroup/list">群组管理</a></li></hna:permission>
						  <hna:permission privilege="contacts.view"><li><a href="${ctx}/contacts/list">通讯录管理</a></li></hna:permission>
						</ul>
					</div>
				</li>
				</hna:permission>

				<hna:permission privilege="system">
				<li><font data-role="root" data-level="1"><a><i	class="m03"></i>系统管理</a></font>
					<div class="a_content" data-role="tree_action" data-con="1">
						<ul>
						  <hna:permission privilege="sysNodeLog.view"><li><a href="${ctx}/sysNodeLog/list">工作节点查询</a></li></hna:permission>
						  <hna:permission privilege="dicObj.view">   <li><a href="${ctx}/dicObj/list">科目管理</a></li>    </hna:permission>
						  <hna:permission privilege="sysUser.view">   <li><a href="${ctx}/sysUser/list">用户管理</a></li>                      </hna:permission>
		                  <hna:permission privilege="notification.view">   <li><a href="${ctx}/notification/list">通知公告</a></li>                 </hna:permission>
						  <hna:permission privilege="sysDept.view">   <li><a href="${ctx}/sysDept/list">部门管理</a></li>                      </hna:permission>
		                  <hna:permission privilege="sysRole.view">   <li><a href="${ctx}/sysRole/list">角色管理</a></li>                      </hna:permission>
		                  <hna:permission privilege="sysAuthority.view">   <li><a href="${ctx}/sysAuthority/list">权限管理</a></li>                 </hna:permission>
						  <hna:permission privilege="sysUser.editPassword">   <li><a href="${ctx}/sysUser/toEditPassword">密码修改</a></li>     </hna:permission>
		                  <hna:permission privilege="sysLog.view">   <li><a href="${ctx}/sysLog/list">系统日志</a></li>                       </hna:permission>
		                  <hna:permission privilege="sysMethodCallTime.view">   <li><a href="${ctx}/sysMethodCallTime/list">方法耗时监控</a></li>          </hna:permission>
						</ul>
					</div>
				</li>
				</hna:permission>
				
			</ul>
		</div>
	</div>
</div>
<script type="text/javascript">
  	$(document).ready(function(){
  		$(".meau").find("a").removeClass("on");
  		
  		var location=window.location.href;
  		var url1=location.split("/")[3];
  		var url=location.substring(location.indexOf(url1)-1);
  		
  		 $(".meau").find("a").each(function(){
  				
  			var a_href=$(this).attr("href");
  			if(a_href==url){
  				
  				if($(this).parent().is("font")){
  					$(this).addClass("on");
  	  			    $(".a_content").hide();
  	  				$(this).parent().next(".a_content").show();
  	  				$(this).parent().next(".a_content").find("a").addClass("on");
  				}else{
  					$(this).addClass("on");
  	  			    $("font a").removeClass("on");
  	  			    $(".a_content").hide();
  	  			    $(this).parents(".a_content").show();
  	  				$(this).parents(".a_content").siblings().find("a").addClass("on");
  				}
  				return;
  			}
  			
  		}); 
  		
  		
  	});
  </script>
